package cn.strive.eams.audit.mapper;

import cn.strive.eams.audit.pojo.dto.AuditQuery;
import cn.strive.eams.audit.pojo.entity.Audit;
import cn.strive.eams.audit.pojo.vo.AuditVO;
import cn.strive.eams.busRequire.pojo.vo.BusRequireVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AuditMapper {

    void insert(Audit audit);

    List<AuditVO> selectAll(AuditQuery auditQuery);

    List<BusRequireVO> selectBusRequire(Long auditId);

    void update(Audit audit);

    Integer selectRestAuditCount(AuditQuery auditQuery);

    void deleteById(Long auditId);

    void cancel(Long id);
}
